package services

import (
	"WORKSPACE/dao"
	"WORKSPACE/models"
)

func GetAllovertime() (error, []models.Overtime,int64) {
	err, overtime, total := dao.GetAllovertime()
	return err, overtime, total
}


func Delovertime(eno string,odata string) error {
	err := dao.Delovertime(eno,odata)
	return err
}

func Updateovertime(overtime models.Overtime) error{
	err:= dao.Updateovertime(overtime)
	return err
}

func Addovertime(overtime models.Overtime) (error) {
	err := dao.Addovertime(overtime)
	return err
}
